﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using WinnerCMS.Model;

namespace WinnerCMS.Data.Mapping
{
    public partial class CounterContentMap
        : EntityTypeConfiguration<CounterContent>
    {
        public CounterContentMap()
        {
            // table
            //ToTable("CMS_CounterContent");

            // keys
            HasKey(t => t.Id);

            // Properties
            Property(t => t.Id)
                
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();
            Property(t => t.Today)
                
                .IsRequired();
            Property(t => t.Yesterday)
                
                .IsRequired();
            Property(t => t.Date)
                
                .IsRequired();
            Property(t => t.Total)
                
                .IsRequired();
            Property(t => t.StartTime)
                
                .IsRequired();
            Property(t => t.High)
                
                .IsRequired();
            Property(t => t.HighTime)
                
                .IsRequired();

            // Relationships


        }
    }
}

